﻿using System;
using System.Windows.Forms;
using Microsoft.Practices.Mobile.Configuration;

namespace ConfigurationGettingStarted
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            ConfigurationManager.ConfigFileName = "app.config";
            ApplicationSummary summary = ConfigurationManager.GetSection("summary") as ApplicationSummary;
            this.NameLabel.Text = summary.Name;
            this.UrlLabel.Text = summary.Url;

            ApplicationUser user = ConfigurationManager.GetSection("user") as ApplicationUser;

            Settings settings = ConfigurationManager.GetSection("settings") as Settings;

            AppSettings apps = ConfigurationManager.GetSection("appSettings") as AppSettings;
            string tmp = apps["CompanyWebsite"];


        }
    }
}